package com.monitor.dao;

import com.monitor.pojo.MonitorInfo;
import com.monitor.vo.MonitorEditReq;
import com.monitor.vo.MonitorVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MonitorInfoDao {

    MonitorInfo selectByAccount(@Param("account") String account, @Param("type") String type);

    List<MonitorInfo> selectMonitorList(MonitorVo monitorVo);

    List<MonitorInfo>  selectMonitors(@Param("ids") String ids);

    int updateByAccountAndType(MonitorInfo monitorInfo);

    int updateByVersion(MonitorInfo monitorInfo);

    int updateByType(MonitorEditReq editReq);

    int selectCount(String account);

    int delMonitorById(Integer id);
}